namespace VAdvantage.Model
{

/** Generated Model - DO NOT CHANGE */
using System;
using System.Text;
using VAdvantage.DataBase;
using VAdvantage.Common;
using VAdvantage.Classes;
using VAdvantage.Process;
using VAdvantage.Model;
using VAdvantage.Utility;
using System.Data;
/** Generated Model for AD_ModuleRelatedInfo
 *  @author Jagmohan Bhatt (generated) 
 *  @version Vienna Framework 1.1.1 - $Id$ */
public class X_AD_ModuleRelatedInfo : PO
{
public X_AD_ModuleRelatedInfo (Context ctx, int AD_ModuleRelatedInfo_ID, String trxName) : base (ctx, AD_ModuleRelatedInfo_ID, trxName)
{
/** if (AD_ModuleRelatedInfo_ID == 0)
{
SetAD_ModuleInfo_ID (0);
SetAD_ModuleRelatedInfo_ID (0);
}
 */
}
public X_AD_ModuleRelatedInfo (Ctx ctx, int AD_ModuleRelatedInfo_ID, String trxName) : base (ctx, AD_ModuleRelatedInfo_ID, trxName)
{
/** if (AD_ModuleRelatedInfo_ID == 0)
{
SetAD_ModuleInfo_ID (0);
SetAD_ModuleRelatedInfo_ID (0);
}
 */
}
/** Load Constructor 
@param ctx context
@param rs result set 
@param trxName transaction
*/
public X_AD_ModuleRelatedInfo (Context ctx, DataRow rs, String trxName) : base(ctx, rs, trxName)
{
}
/** Load Constructor 
@param ctx context
@param rs result set 
@param trxName transaction
*/
public X_AD_ModuleRelatedInfo (Ctx ctx, DataRow rs, String trxName) : base(ctx, rs, trxName)
{
}
/** Load Constructor 
@param ctx context
@param rs result set 
@param trxName transaction
*/
public X_AD_ModuleRelatedInfo (Ctx ctx, IDataReader dr, String trxName) : base(ctx, dr, trxName)
{
}
/** Static Constructor 
 Set Table ID By Table Name
 added by ->Harwinder */
static X_AD_ModuleRelatedInfo()
{
 Table_ID = Get_Table_ID(Table_Name);
 model = new KeyNamePair(Table_ID,Table_Name);
}
/** Serial Version No */
static long serialVersionUID = 27631569504927L;
/** Last Updated Timestamp 10/5/2012 7:06:28 PM */
public static long updatedMS = 1349444188138L;
/** AD_Table_ID=1000381 */
public static int Table_ID;
 // =1000381;

/** TableName=AD_ModuleRelatedInfo */
public static String Table_Name="AD_ModuleRelatedInfo";

protected static KeyNamePair model;
protected Decimal accessLevel = new Decimal(7);
/** AccessLevel
@return 7 - System - Client - Org 
*/
protected override int Get_AccessLevel()
{
return Convert.ToInt32(accessLevel.ToString());
}
/** Load Meta Data
@param ctx context
@return PO Info
*/
protected override POInfo InitPO (Context ctx)
{
POInfo poi = POInfo.GetPOInfo (ctx, Table_ID);
return poi;
}
/** Load Meta Data
@param ctx context
@return PO Info
*/
protected override POInfo InitPO (Ctx ctx)
{
POInfo poi = POInfo.GetPOInfo (ctx, Table_ID);
return poi;
}
/** Info
@return info
*/
public override String ToString()
{
StringBuilder sb = new StringBuilder ("X_AD_ModuleRelatedInfo[").Append(Get_ID()).Append("]");
return sb.ToString();
}
/** Set AD_ModuleInfo_ID.
@param AD_ModuleInfo_ID AD_ModuleInfo_ID */
public void SetAD_ModuleInfo_ID (int AD_ModuleInfo_ID)
{
if (AD_ModuleInfo_ID < 1) throw new ArgumentException ("AD_ModuleInfo_ID is mandatory.");
Set_ValueNoCheck ("AD_ModuleInfo_ID", AD_ModuleInfo_ID);
}
/** Get AD_ModuleInfo_ID.
@return AD_ModuleInfo_ID */
public int GetAD_ModuleInfo_ID() 
{
Object ii = Get_Value("AD_ModuleInfo_ID");
if (ii == null) return 0;
return Convert.ToInt32(ii);
}
/** Set AD_ModuleRelatedInfo_ID.
@param AD_ModuleRelatedInfo_ID AD_ModuleRelatedInfo_ID */
public void SetAD_ModuleRelatedInfo_ID (int AD_ModuleRelatedInfo_ID)
{
if (AD_ModuleRelatedInfo_ID < 1) throw new ArgumentException ("AD_ModuleRelatedInfo_ID is mandatory.");
Set_ValueNoCheck ("AD_ModuleRelatedInfo_ID", AD_ModuleRelatedInfo_ID);
}
/** Get AD_ModuleRelatedInfo_ID.
@return AD_ModuleRelatedInfo_ID */
public int GetAD_ModuleRelatedInfo_ID() 
{
Object ii = Get_Value("AD_ModuleRelatedInfo_ID");
if (ii == null) return 0;
return Convert.ToInt32(ii);
}
/** Set Customer/Prospect.
@param C_BPartner_ID Identifies a Customer/Prospect */
public void SetC_BPartner_ID (int C_BPartner_ID)
{
if (C_BPartner_ID <= 0) Set_Value ("C_BPartner_ID", null);
else
Set_Value ("C_BPartner_ID", C_BPartner_ID);
}
/** Get Customer/Prospect.
@return Identifies a Customer/Prospect */
public int GetC_BPartner_ID() 
{
Object ii = Get_Value("C_BPartner_ID");
if (ii == null) return 0;
return Convert.ToInt32(ii);
}
/** Set Export.
@param Export_ID Export */
public void SetExport_ID (String Export_ID)
{
if (Export_ID != null && Export_ID.Length > 50)
{
log.Warning("Length > 50 - truncated");
Export_ID = Export_ID.Substring(0,50);
}
Set_Value ("Export_ID", Export_ID);
}
/** Get Export.
@return Export */
public String GetExport_ID() 
{
return (String)Get_Value("Export_ID");
}
/** Set URL.
@param URL Full URL address - e.g. http://www.viennasolutions.com */
public void SetURL (String URL)
{
if (URL != null && URL.Length > 100)
{
log.Warning("Length > 100 - truncated");
URL = URL.Substring(0,100);
}
Set_Value ("URL", URL);
}
/** Get URL.
@return Full URL address - e.g. http://www.viennasolutions.com */
public String GetURL() 
{
return (String)Get_Value("URL");
}
}

}
